<?php
class Resource extends Eloquent {
	
	/**
	 * A resource with many groups, where the groups are also shared by other resources.
	 *
	 * @return void
	 */
    public function groups()
    {
        return $this->belongsToMany("Group");
    }
}